package com.hnust.root.dao.entity.domain.forward;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 评论
 */
@Data
@TableName("comment")
public class Comment {
    private static final long serialVersionUID = 1L;
    @TableId
    private int id;

    @TableField("topic_id")
    private int topicId;

    @TableField("open_id")
    private String openId;

    @TableField("content")
    private String content;

    //评论者的详细信息
    @TableField(exist = false)
    private WxUserInfo userInfo;

    //回复数
    @TableField("reply_count")
    private int replyCount;

    //评论时间
    @TableField("create_time")
    private Date createDate;
}
